package com.dc.datacollect.dto.input;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 注册表单输入
 *
 * @author zhuangjie
 * @date 2023/06/19
 */
@Data
public class RegisterInput {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    private String studentId;
    private String email;
    @Min(value = 0,message = "用户类型错误")
    @Max(value = 1,message = "用户类型错误")
    private Short type;
    @NotBlank(message = "验证码不能为空")
    private String code;
}
